package com.aerotechnic.service.interfaces;

import java.util.List;

import com.aerotechnic.entities.Jalon;
import com.aerotechnic.entities.Phase;


public interface PhaseBoIn {
	
void save(Phase myEntity);//before inserting make sure that the id is not duplicated if it's not save the object and return true otherwise restrict saving and return false
    
    void update(Phase myEntity);
    
    void delete(Long id);

    Phase findByID(Long id);
    
    public List<Phase> find(int jtStartIndex, int jtPageSize);
    
    int countAllPhase();
    
    List<Phase> findAll();
    
    Phase  getPhaseByCode(int phaseCode);
}
